package flowlight.service;

import flowlight.dao.FlowLightDao;
import flowlight.entity.FlowLight;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("FlowLightService")
public class FlowLightService {

    @Resource(name = "FlowLightDao")
    private FlowLightDao flowLightDao;
    public int insertFlowLight(FlowLight flowLight){
        return flowLightDao.insertFlowLight(flowLight);
    }
    public void deleteFlowLight(Integer userId,Integer flowLIghtId){
        flowLightDao.deleteFlowLight(userId,flowLIghtId);
    }
    public List<FlowLight> queryFlowLight(Integer userId) {
         return flowLightDao.queryFlowLight(userId);
    }
    public List<FlowLight>  queryAllFlowLight() {
        return flowLightDao.queryAllFlowLight();
    }
}
